/**
 * 
 */
package vue;

import java.awt.*;

import javax.swing.*;

/**
 * @author Ben
 *
 */
public class Dessin extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Image image;

	/**
	 * @param image
	 */
	public Dessin(Image image) {
		super();
		this.image = image;
	}

	/**
	 * 
	 */
	public Dessin() {
	}

	/**
	 * @param arg0
	 */
	public Dessin(boolean arg0) {
		super(arg0);
	}

	/**
	 * @param arg0
	 * @param arg1
	 */
	public Dessin(LayoutManager arg0, boolean arg1) {
		super(arg0, arg1);
	}

	/**
	 * @param arg0
	 */
	public Dessin(LayoutManager arg0) {
		super(arg0);
		// TODO Auto-generated constructor stub
	}
	/**
	 * @param image
	 */
	public void setImage(Image image) {
		this.image=image;
	}
	/**
	 * @return the image
	 */
	public Image getImage() {
		return image;
	}
	public Dessin clone() {
		return new Dessin(image);
	}
	/**
	 * 
	 */
	public void paint(Graphics graphic) {
		graphic.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), null);
	}

}
